package com.tuanzi.loan.business.entity.family;

import com.tuanzi.loan.core.entity.AuditEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * User: liangZongXi
 * Create time: 11:05 2019/7/9
 * Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "loan_large_new_delivery")
public class LoanLargeNewDelivery extends AuditEntity {
    private static final long serialVersionUID = -2556524104177280297L;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "LARGE_TYPE")
    @NotNull(message = "请选择甲方")
    private Integer largeType;

    @Column(name = "SORT")
    @NotNull(message = "请输入排序")
    private Integer sort;

    @Column(name = "CITY_STR")
    private String cityStr;

}
